package com.kws.merchant.mapper;

import com.kws.merchant.domain.OperationTicketItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * 两票项目(OperationTicketItem)表数据库访问层
 *
 * @author yxy
 * @since 2024-12-12 11:47:31
 */

public interface OperationTicketItemMapper extends BaseMapper<OperationTicketItem> {


    @Select("select o.*,i.item_name from tb_operation_ticket_item o left join tb_item i on o.item_id=i.id where o.ticket_id=${id}")
    List<OperationTicketItem> listByTicketId(@Param("id") Long id);
}
